package lobster.games.studios;

import lobster.games.studios.ImageAdapter;
import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.GridView;

public class LevelSelect extends Activity{

	GridView gridView;
	static int[] levels;

	@Override
	public void onCreate(Bundle savedInstanceState) {

		Resources res = getResources();
		levels = new int[res.getInteger(R.integer.numberoflevels)];

		for(int i = 0; i < levels.length; i++){
			levels[i] = i + 1;
		}

		super.onCreate(savedInstanceState);
		setContentView(R.layout.levelselect);

		gridView = (GridView) findViewById(R.id.gridview);
		gridView.setAdapter(new ImageAdapter(this, levels));
	}
}
